#ifndef QFinNalLISTA_H
#define QFinNalLISTA_H

#include "qmybaseformwidget.h"
#include "ui_qFinNallista.h"
#include <QStandardItemModel>
#include <QItemSelection>

class QFinNalLista : public QMyBaseFormWidget
{
	Q_OBJECT

public:
    QFinNalLista(QWidget *parent = 0);
    ~QFinNalLista();
    void lista(const QString& nameSearch);
    void lista_detail(const QString& nameSearch);
    int getSelectedId(){return m_selectedText.toInt();}
    virtual void pressEscape();
	virtual void pressReturn();
    QStandardItemModel *model;
    QStandardItemModel *model2;
    QStringList geInfo();
    bool isCheckedTovarenList();
	bool isCheckedMalaIspratnica();
	void setRow(int mrow);
	int getRow();
private:
    void deleteDok(int idDok);
    Ui::QFinNalListaClass ui;
    QHeaderView *header;
    QHeaderView *header2;
    QString m_selectedText;

    private slots:
        void selectionChanged(QModelIndex modelX, QModelIndex modelY );
        void on_pushButton_clicked();
        void on_pushButton_2_clicked();
signals:
        void closeW();
        void procF2();
        void procF3();
		void sIspratnicaToIzlFaktura(QString&, QString&);
};

#endif // QFinNalLISTA_H
